﻿using Mes.Domain.BoundedContext.Entities.Operations;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Mes.Infrastructure.Data.BoundedContext.EntityTypeConfigurations.Operations
{
    public class ProcessRouteEntityConfig : IEntityTypeConfiguration<ProcessRoute>
    {
        public void Configure(EntityTypeBuilder<ProcessRoute> builder)
        {
            builder.ToTable("processroute");
            builder.Property(b => b.Code).HasMaxLength(50).IsRequired();
            builder.Property(b => b.Name).HasMaxLength(50).IsRequired();
            builder.Property(b => b.CreateTime).IsRequired();
            builder.Property(b => b.Remark).HasMaxLength(200).IsRequired();
            builder.Property(b => b.Updatetime).IsRequired();

        }
    }
}
